<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>添加卡片</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link href="${ctx }/css/style.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="${ctx }/js/jquery/jquery-1.6.1.min.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#btnSave").click(function() {
					$("form:first").submit();
				});
			});
		</script>
	</head>
	<body style="text-align: left; margin: 0 auto;">
		<s:form action="addCard" method="post" namespace="/card" target="ifrm">
			<div>
				<div style="width: 513px; height: 30px; text-align: left;">
					当前位置：添加卡片
				</div>
				<div style="width: 513px; height: 110px; text-align: left;">
					<img src="${ctx }/images/card.gif" style="border: 0" alt="" />
				</div>
				<div style="width: 513px; background-color: #EDDEA0; height: 30px; border: 1px solid gray; text-align: center;">
					<b>添 加 卡 片</b>
				</div>
				<div style="width: 513px; height: 35px; background-color: #FBF7E6">
					<div style="float: left; width: 35%; height: 35px; text-align: right">
						所属类型：
					</div>
					<div style="float: right; width: 62%; height: 35px; text-align: left">
						<s:select list="cardTypes" listKey="id" listValue="%{typeName + '-' + price.intValue()}"
							cssStyle="width: 188px;" name="card.cardType"></s:select>
					</div>
				</div>
				<div style="width: 513px; height: 35px; background-color: #ffffff">
					<div
						style="float: left; width: 35%; height: 35px; text-align: right;"
						class="alertText">
						卡&nbsp;&nbsp;号：
					</div>
					<div style="float: right; width: 62%; height: 35px; text-align: left">
						<s:textfield name="card.cardNo" cssStyle="width: 286px;"></s:textfield>
					</div>
				</div>
				<div style="width: 513px; height: 35px; background-color: #ffffff">
					<div
						style="float: left; width: 35%; height: 35px; text-align: right"
						class="alertText">
						密&nbsp;&nbsp;码：
					</div>
					<div
						style="float: right; width: 62%; height: 35px; text-align: left">
						<s:textfield name="card.cardPwd" cssStyle="width: 286px;"></s:textfield>
					</div>
				</div>
				<div style="width: 513px; height: 96px; background-color: #FBF7E6">
					<div
						style="float: left; width: 35%; height: 96px; text-align: right">
						备注说明：
					</div>
					<div
						style="float: right; width: 62%; height: 96px; text-align: left">
						<s:textarea name="card.cardDesc" cssClass="textArea" cssStyle="width: 178px; height: 96px;"></s:textarea>
					</div>
				</div>
				<br />
				<div style="width: 513px; height: 30px; text-align: center;">
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnSave" type="button" value="提交"
						class="botton" style="width: 74px; cursor: hand; height: 22px;" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input id="btnRet" type="button" value="返回"
						class="botton" onclick="self.close();" style="width: 74px; cursor: hand; height: 21px;" />
				</div>
			</div>
		</s:form>
		
		<iframe style="DISPLAY: none" name="ifrm" width:750" height="0"></iframe>
	</body>
</html>
